<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="Author" content="Fly">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel = "stylesheet" href = "<%=basePath %>css/shou-012.css">
    <title>Title</title>
    <style>

    </style>
   <script type="text/javascript" src="<%=basePath %>js/jquery-1.10.1.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/shou.js"></script>
<script type="text/javascript" src="<%=basePath %>js/fenye.js"></script>

</head>
<body>
<!--请假信息-->
<div class="mask_leave">
    <div class="mask_content">

        <p>新增请假记录</p>
        <form action = "/kss/apply/addapply.do" method="post">
            <div>
                <label class="tao_lab" for = "leave_name">姓名</label>
                <input id="leave_name" type = "text"  placeholder="请输入实习生姓名" name="staff_name">
            </div>

            <div>
                <label  class="tao_lab" for = "leave_stage">请假阶段</label>
                <select id = "leave_stage" name="apply_jieduan">
                    <option style="font-size: 16px;color:#999;" >请选择请假阶段</option>
                    <option style="color: black">第一阶段</option>
                    <option style="color: black">第二阶段</option>
                    <option style="color: black">第三阶段</option>
                </select>
            </div>

            <div>
                <label class="tao_lab" for = "leave_date">请假日期</label>
                <input id="leave_date" type = "date" name="apply_time">
            </div>
            <div>
                <label  class="tao_lab" for = "leave_days">请假时长</label>
                <select id = "leave_days" name="apply_state">
                    <option style="font-size: 16px;color:#999;" >请选择请假时长</option>
                    <option style="color: black">上午</option>
                    <option style="color: black">下午</option>
                    <option style="color: black">全天</option>
                </select>
            </div>
            <div>
                <label  class="tao_lab leave_reason" for = "leave_reason" >请假原因</label>
                <textarea  id = "leave_reason" cols = "35" rows = "5"  name="reason"  placeholder="请输入请假原因"></textarea>
            </div>
            <div class="button">
                <button class="submit" type="submit">确&nbsp&nbsp认</button>
                <span class="cancel_leave">取&nbsp&nbsp消</span>
            </div>
        </form>
    </div>
</div>
<div class="head">

</div>
<div class="content">
    <div class="content_left">
        <p class="clp cl1"><a href = "/kss/login/shouye.do">首页</a></p>
        <div class="cld"></div>
        <p class="clp cl2 _clp_"><a>实习生信息</a></p>
        <div class="cld cl2_1">
            <li class="cl_li1 "><a href = "/kss/staff/findAllStaff.do?interviewer=ALL&staff_name=null">基本信息</a></li>
            <li class="cl_li2 _cl_li"><a href = "/kss/apply/findAllApply.do">请假信息</a></li>
        </div>
        <p class="=clp cl3 "><a>培训信息</a></p>
        <div class="cld cl3_1">

            <li class="cl_li6"><a href = "/kss/find/findFirstPhase.do">阶段成绩</a></li>
            <li class="cl_li7 "><a href = "/kss/jieduan/findJieDuan.do">综合查询</a></li>

        </div>
        <p class="clp cl4"><a>特殊人员</a></p>
        <div class="cld cl4_1">
            <li class="cl_li4"><a href = "/kss/eliminate/selEliminate.do">淘汰人员</a></li>
            <li class="cl_li5"><a href = "/kss/newCome/getNew.do">新增人员</a></li>
        </div>
        <p class="clp cl5"><a href = "/kss/staff/echarts.do">综合信息</a></p>
        <div  >

        </div>
    </div>

    <!--基本信息-->
    <!--请假信息-->
    <div class="content_right2">
        <div class="cr1">
            <p>实习生信息-请假信息</p>
            <table id="table1">
                <thead>
                    <th>姓名</th>
                    <th>请假阶段</th>
                    <th>请假时间</th>
                    <th>请假时长</th>
                    <th>请假原因</th>
                    <th class="new_leave" style="cursor: pointer"><a>新增</a></th>
                </thead>
                <tbody>
                  <c:forEach var="apply" items="${applylist}">
				<tr>
					<td>
						${apply.staff_name}
					</td>
						<c:if test="${apply.apply_jieduan==1}">
							<td>第一阶段
							</td>
						</c:if>
						<c:if test="${apply.apply_jieduan==2}">
							<td>第二阶段
							</td>
						</c:if><c:if test="${apply.apply_jieduan==3}">
							<td>第三阶段
							</td>
						</c:if>
					<td>
						<fmt:formatDate value="${apply.apply_time}" pattern="yyyy-MM-dd" />
					</td>
						<c:if test="${apply.apply_state==1}">
							<td>上午
							</td>
						</c:if>
						<c:if test="${apply.apply_state==2}">
							<td>下午
							</td>
						</c:if><c:if test="${apply.apply_state==3}">
							<td>全天
							</td>
						</c:if>
					<td>
						${apply.apply_reason}
					</td>
				</tr>
			</c:forEach>

                </tbody>
            </table>
        </div>
        
         <div align="center" style="margin-top:15px">
共<a class="blue" id="sjzl"></a>条记录&nbsp;&nbsp;当前<a class="blue" id="btn0"></a>页&nbsp;&nbsp;&nbsp;
	<a id="btn0"></a>
	<a  href="#" id="btn1">首页</a>
	<a  href="#" id="btn2">上一页</a>
	<a  href="#" id="btn3">下一页</a>
	<a  href="#" id="btn4">尾页</a> &nbsp;&nbsp;
	
	  转到第<input type="text" id="changePage" size="1" maxlength="4" style=" width:30px; text-align:center; border:1px solid #ccc;"/>页
	  <input type="button" id="btn5" value="跳转"/>
</div>
    </div>
</div>

</body>
</html>